package com.tzpay.tzpay.api;

import com.tzpay.tzpay.common.ConstValue;
import com.tzpay.tzpay.utils.CryptTool;

import java.text.SimpleDateFormat;

/**
 * Description:
 * Created:      [16/3/30]
 * Author:       [Yang]
 **/
public class TzLoginRequest {
    String deviceId = ConstValue.DEVICE_ID;//设备号，记录设备号
    String userId;//用户ID
    String userPwd;//用户密码
    String deviceTime = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss").format(System.currentTimeMillis());//设备时间 年-月-日  时:分:秒
    String mac;//MD5加密

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getMac() {
        return mac;
    }

    public String getDeviceTime() {
        return deviceTime;
    }

    public void setDeviceTime(String deviceTime) {
        this.deviceTime = deviceTime;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    @Override
    public String toString() {
        return "LoginRequest{" +
                "deviceId='" + deviceId + '\'' +
                ", userId='" + userId + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", deviceTime='" + deviceTime + '\'' +
                ", mac='" + mac + '\'' +
                '}';
    }

}
